This section describes functions for managing graphics data. These functions apply to all derived media handler components.
The MediaGetDrawingRgn function allows your derived media handler component to specify a portion of the screen that must be redrawn. This region is defined in the movie's display coordinate system.
pascal ComponentResult MediaGetDrawingRgn (MediaHandler mh,
RgnHandle *partialRgn);
The Movie Toolbox calls this function in order to determine what part of the screen needs to be redrawn. By default, the Movie Toolbox redraws the entire region that belongs to your component. If your component determines that only a portion of the screen has changed, and has indicated this to the Movie Toolbox by setting the mPartialDraw flag to 1 in the flagsOut parameter of the MediaIdle function, the Movie Toolbox calls your component's MediaGetDrawingRgn function. Your component returns a region that defines the changed portion of the track's display region.
The MediaGetGraphicsMode function allows you to obtain the graphics mode and blend color values currently in use by any media handler.
pascal ComponentResult MediaGetGraphicsMode (
MediaHandler mh,
long *mode,
RGBColor *opColor);
The MediaSetGraphicsMode function allows you to set the graphics mode and blend color of any media handler.
pascal ComponentResult MediaSetGraphicsMode (
MediaHandler mh,
long mode,
const RGBColor *opColor);